package cn.com.bluemoon.design.visitor.file;

import cn.com.bluemoon.design.visitor.Extract2TxtVisitor;
import cn.com.bluemoon.design.visitor.FileType;
import cn.com.bluemoon.design.visitor.file.BaseResourceFile;

/**
 * @author Jarod.Kong
 * @date 2021/1/13 13:14
 */
public class PdfFile extends BaseResourceFile {
    public PdfFile(String filePath) {
        super(filePath);
    }

    @Override
    public FileType fileType() {
        return FileType.PDF;
    }

    @Override
    public void accept(Extract2TxtVisitor visitor) {
        visitor.visitor(this);
    }
}
